module.exports = {
    module: {
        rules: [
            {
                test: /\.(png|svg|jpg|gif)$/,
                // use: "url-loader?limit=8192&name=images/[hash:8].[name].[ext]"
                use: [
                    {
                        loader: 'file-loader',
                        options:
                            {
                                outputPath: 'static/images',//定义输出的图片文件夹
                                publicPath: ''
                            }
                    }
                ]
            }
        ]
    }
}
